<template>
  <div class="content-in">
    <div class="banner">
      <img src="@/assets/images/work/banner1.png" />
      <div class="banner-tx">
        <p class="ft48">CAREER！</p>
        <template v-if="lang === 'en'">
          <p>IF YOU WANT TO MAKE A DIFFERENCE,</p>
          <p>THE DOOR OF ZOETENG IS</p>
          <p>ALWAYS OPEN FOR YOU!</p>
        </template>
        <template v-else>
          <p>如果您想有所作为，</p>
          <p>硕腾的大门随时为您打开！</p>
        </template>
      </div>
    </div>
    <div class="main">
      <navbar></navbar>
      <div class="top">
        <div class="t-box"></div>
        <div class="flex">
          <!-- <h1 class="gray"></h1> -->
          <h1>{{ lang === 'en' ? 'Why work at Soten' : '选择硕腾的原因' }}</h1>
        </div>
        <ul>
          <li>
            <p class="ft-20">{{ $t('work.reason.growing') }}</p>
            <p class="ft-16">{{ $t('work.reason.growingBg') }}</p>
          </li>
          <li>
            <p class="ft-20">{{ $t('work.reason.boring') }}</p>
            <p class="ft-16">{{ $t('work.reason.boringBg') }}</p>
          </li>
          <li>
            <p class="ft-20">{{ $t('work.reason.eading') }}</p>
            <p class="ft-16">{{ $t('work.reason.eadingBg') }}</p>
          </li>
        </ul>
      </div>
      <div class="main-in">
        <div class="flex">
          <div class="flex-1">
            <h2 class="blue">{{ $t('work.reason.working') }}</h2>
            <p>{{ $t('work.reason.contentA') }}</p>
            <p class="mg-t-30">{{ $t('work.reason.contentB') }}</p>
            <p class="blue">{{ $t('work.reason.contentC') }}</p>
          </div>
          <img src="@/assets/images/work/reason-bg03.png" class="main-bg" />
        </div>
        <div class="flex">
          <img src="@/assets/images/work/reason-bg04.png" class="main-bg" />
          <div class="flex-1">
            <h2 class="blue">{{ $t('work.reason.contentD') }}</h2>
            <p>{{ $t('work.reason.contentE') }}</p>
          </div>
        </div>
        <div class="flex">
          <div class="flex-1">
            <h2 class="blue">{{ $t('work.reason.contentF') }}</h2>
            <p>{{ $t('work.reason.contentG') }}<br />{{ $t('work.reason.contentH') }}</p>
          </div>
          <img src="@/assets/images/work/reason-bg05.png" class="main-bg" />
        </div>
      </div>
      <div class="main-in flex foot">
        <div class="flex-1">
          <img src="@/assets/images/work/reason-bg06.png" class="main-in-bg" />
          <h2 class="tx-center">{{ $t('work.reason.contentI') }}</h2>
          <p class="tx-center">
            {{ $t('work.reason.contentJ') }}<br />{{ $t('work.reason.contentK') }}
          </p>
        </div>
        <div class="flex-1">
          <img src="@/assets/images/work/reason-bg07.png" class="main-in-bg" />
          <h2 class="tx-center">{{ $t('work.reason.contentL') }}</h2>
          <p class="tx-center">
            {{ $t('work.reason.contentM') }}<br />
            {{ $t('work.reason.contentN') }}<br />
            {{ $t('work.reason.contentO') }}<br />
            {{ $t('work.reason.contentP') }}
          </p>
        </div>
        <div class="flex-1">
          <img src="@/assets/images/work/reason-bg08.png" class="main-in-bg" />
          <h2 class="tx-center">{{ $t('work.reason.contentQ') }}</h2>
          <p class="tx-center">
            {{ $t('work.reason.contentR') }}<br />
            {{ $t('work.reason.contentS') }}<br />
            {{ $t('work.reason.contentT') }}<br />
            {{ $t('work.reason.contentU') }}<br />
            {{ $t('work.reason.contentV') }}
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex'
import Navbar from '../navbar'

export default {
  components: {
    Navbar,
  },
  data() {
    return {}
  },
  computed: {
    ...mapState(['lang']),
  },
  methods: {},
}
</script>

<style lang="less" scoped>
@import '~assets/var';

.content-in {
  .banner {
    display: flex;
    position: relative;

    img {
      width: 100%;
    }

    .banner-tx {
      width: 100%;
      .pd(180, 0, 0, 360);
      .ft(36);

      position: absolute;
      font-weight: bold;
      color: #fff;

      .ft48 {
        .ft(48);

        color: #949596;
      }
    }
  }

  .top {
    .pd(40, 0, 0, 0);

    display: flex;
    position: relative;

    .t-box {
      .width(600);
      .height(558);

      background-image: url(@/assets/images/work/reason-bg2.png);
      background-size: auto 100%;
      background-position: center;
    }

    .flex {
      text-align: right;
      flex-direction: column;
      flex: 1;
      .pd(120, 0, 0, 0);

      color: #333;

      h1 {
        .ft(30);
      }

      .gray {
        color: #b0b7bd;
      }
    }

    ul {
      padding: 0;
      position: absolute;
      display: flex;
      right: 0;
      .top(320);

      li {
        .pd(10, 10, 10, 10);
        .mg(0, 0, 0, 10);
        .height(220);
        .width(280);

        color: #fff;
        list-style: none;

        .ft-20 {
          .ft(20);

          text-align: center;
        }

        .ft-16 {
          .mg(5, 0, 0, 0);
          .ft(16);

          word-break: break-word;
        }

        &:nth-child(1) {
          background-color: rgba(7, 98, 203, 0.8);
        }

        &:nth-child(2) {
          background-color: rgba(133, 179, 223, 0.8);
        }

        &:nth-child(3) {
          background-color: rgba(194, 217, 239, 0.8);
        }
      }
    }
  }

  .main {
    .width(1200);

    margin: 0 auto;

    .main-in {
      .mg(80, 0, 80, 0);

      background-color: #f6f7f9;

      .flex {
        align-items: center;
        justify-content: space-between;

        .flex-1 {
          .pd(0, 60, 0, 40);

          flex: 1;
        }

        img {
          .width(600);
          .height(310);
        }
      }

      h2 {
        .ft(26);
        .lineH(30);
        .mg(0, 0, 8, 0);
      }

      p {
        .ft(16);
        .lineH(24);

        color: #666;
      }

      .blue {
        color: #0261bc;
      }

      .mg-t-30 {
        .mg(30, 0, 0, 0);
      }

      .main-in-bg {
        .width(240);

        display: block;
        margin: 0 auto;
      }
    }

    .foot {
      background-color: #fff;
      justify-content: space-between;

      & > .flex-1 {
        .width(370);
        .pd(36, 25, 28, 25);

        background-color: #f6f7f9;
        .ft(16);

        h2 {
          .ft(20);
        }
      }
    }
  }
}
</style>
